9036563453e15037442105c34d16b23f44ff9a55,uportal-war/src/main/java/org/jasig/portal/portlet/registry/PortletEntityRegistryImpl.java,PortletEntityRegistryImpl,deletePortletEntity,#IPortletEntity#,260
Before Change
public void deletePortletEntity(IPortletEntity portletEntity) {
Validate.notNull(portletEntity, "portletEntity can not be null");
final IPortletEntityId portletEntityId = portletEntity.getPortletEntityId();
if (InterimPortletEntityImpl.isInterimPortletEntityId(portletEntityId)) {
this.removeInterimPortletEntity(portletEntityId);
}
else {
After Change
this.portletEntityDao.deletePortletEntity(portletEntity);
//remove the persistent ID mapping after the delete
this.removePersistentId(portletEntity.getPortletEntityId());
}
else {
this.removeInterimPortletEntity(portletEntity.getPortletEntityId());